﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AuSys.Services.App.FileStorage
{
    public interface IFileStorage
    {
        public bool Save(Stream s, string pathName, out string? errmsg);
        public bool Delete(string pathName, out string? errmsg);
        public string FullUrl(string pathName);
        public Stream? Read(string pathName);
        public StorageProvideType ProvideType { get; }
    }
    public enum StorageProvideType
    {
        Unknown = 0,
        Stream = 1,
        Redirect = 2
    }
}
